﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using PwdMgr.PwdMgrService.Sessions;

namespace PwdMgrUI
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public const string SESSION = "session";
        public App()
        {
            Storage = new Dictionary<string, object>();
        }

        public static Session GetSession()
        {
            if (Storage.ContainsKey(SESSION))
                return (Session)Storage[SESSION];
            return null;
        }

        public static IDictionary<string, object> Storage
        {
            get;
            private set;
        }
    }
}
